﻿<%@ Page Language="C#" MasterPageFile="~/GUIMaster.Master" AutoEventWireup="true" CodeBehind="ManageRoles.aspx.cs" Inherits="TripLOA.GUI.roles.ManageRoles" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentHomePage" runat="server">
   
   <h1 id="H1TitleRoles">
       <asp:Label ID="IblTitlePageRoles" runat="server" 
           meta:resourcekey="IblTitlePageRolesResource1"></asp:Label>
    </h1>
   
   <div id="sec_Div_content">
    
        <asp:Label ID="lab_createRole" runat="server" Text="Create a new Role:" 
            CssClass="label_title_sec" meta:resourcekey="lab_createRoleResource1"></asp:Label>
        <asp:TextBox ID="txt_createRole" runat="server" CssClass="txtBox_generics" 
            meta:resourcekey="txt_createRoleResource1"></asp:TextBox>
        <asp:Button ID="but_createRole" runat="server" Text="Create a Role" 
            onclick="but_createRole_Click" CssClass="button_generics" 
            meta:resourcekey="but_createRoleResource1" />

        <br />
        <br />
        <asp:Label ID="lab_confirm" runat="server" ForeColor="White" 
            Text="Enter a role." CssClass="label_comments" 
            meta:resourcekey="lab_confirmResource1"></asp:Label>
       <br />
    <br />
        <asp:Label ID="list_role_title" runat="server" Text="TRIPLOA ROLE LIST" 
            CssClass="label_title_sec" meta:resourcekey="list_role_titleResource1"></asp:Label>
        <br />
        <br />
        <asp:GridView ID="RoleGrid" runat="server" AutoGenerateColumns="False" 
            onrowdeleting="RoleGrid_RoleDeleting" meta:resourcekey="RoleGridResource1">
            <Columns>
                <asp:TemplateField HeaderText="Roles" meta:resourcekey="TemplateFieldResource1">
                <ItemTemplate>
                <asp:Label runat="server" ID="lab_role" Text="<%# Container.DataItem %>" 
                        meta:resourcekey="lab_roleResource1"></asp:Label>
                </ItemTemplate>
                
                </asp:TemplateField>
                <asp:CommandField DeleteText="Delete Role" HeaderText="Delete Role" 
                    ShowDeleteButton="True" meta:resourcekey="CommandFieldResource1" />
            </Columns>
        </asp:GridView>
        <br />
        <br />
       <asp:HyperLink ID="label_go_to" runat="server" 
            NavigateUrl="ManageRolesToUsers.aspx" Text="Users and Roles Management Page" 
            meta:resourcekey="label_go_toResource1"></asp:HyperLink>
  
    
    </div>
        

</asp:Content>
